package Test;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JPanel;

/**
*
* @author root
*/
public class frameb extends JFrame{
metodos metodos;
static JButton b;
public frameb(){
}

	public frameb(JButton aux){
		super("Formulario 2");
		metodos=new metodos();
		JPanel panel=new JPanel();
		b=aux;
		//valor={objetos,textos,clases,etc}
		b.setText("aki va valor original");
		b.addActionListener(new ActionListener() {
		
			@Override
			public void actionPerformed(ActionEvent e) {
			
				metodos.a();
			}
			});
		panel.add(b);
		getContentPane().add(panel);
		setSize(400, 300);
		setVisible(true);
	}
}



